package com.mercury.ec.framework.air.config;

import com.mercury.ec.framework.air.core.channel.service.AirChannelService;
import com.mercury.ec.framework.air.core.channel.service.AirChannelServiceImpl;
import com.mercury.ec.framework.air.core.client.AirClientFactory;
import com.mercury.ec.framework.air.core.client.impl.AirClientFactoryImpl;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * 机票配置类
 *
 * @author hesx
 */
@AutoConfiguration
public class EcAirAutoConfiguration {

    @Bean
    public AirClientFactory airClientFactory() {
        return new AirClientFactoryImpl();
    }

    @Bean
    public AirChannelService airChannelService() {
        return new AirChannelServiceImpl();
    }
}
